package com.leetcode.linkedList;

import com.leetcode.basic.ListNode;

/**
 * @author Dennis Li
 * @date 2020/7/30 21:11
 */
public class DeleteNode_237 {

    public void deleteNode(ListNode node) {
        // 类似头插法
        node.val = node.next.val;
        node.next = node.next.next;
    }

}
